{include file="Include/H_ui_head" /}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 平台信息管理 <span class="c-gray en">&gt;</span> 知识库 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l">
        <input class="btn btn-danger radius"  type="submit" onclick="datadel('{:Url('platform/knowledge_delAll')}')" value="批量删除" name="sub">
        <a href="javascript:;" onclick="member_add('上传文章','{:Url('platform/knowledgeAdd')}','','510')" class="btn btn-primary radius">
        <i class="Hui-iconfont">&#xe600;</i> 上传文章</a>
        </span>
        <!--<span class="r">共有数据：<strong>{}</strong> 条</span>-->
    </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg ">
            <thead>
            <tr class="text-c">
                <th width="25"><input type="checkbox" name="" value=""></th>
                <th width="20%">序号</th>
                <th width="60%">文章名称</th>
                <th width="20%">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="rs" id="val" key="k"}
            {if $val.knowledge_base != ''}
            <tr class="text-c">
                <td><input type="checkbox" value="{$val.p_id}" name="checkbox[]"></td>
                <td>{$val.p_id}</td>
                <td>{$val.knowledge_base}</td>
                <td class="td-manage">
                    <a style="text-decoration:none" onclick="member_show('查看','{:Url('Platform/knowledge_see',['id'=>$val['p_id']])}','10001','800','500')" href="javascript:;" title="查看">
                        <i class="Hui-iconfont">&#xe725;</i></a>
                </td>
            </tr>
            {/if}
            {/volist}
            </tbody>
        </table>
    </div>
</div>
{include file="Include/H_ui_foot" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript">
    /*编辑*/
    function member_show(title,url,id,w,h){
        layer_show(title,url,w,h);
    }
    /*添加*/
    function member_add(title,url,w,h){
        layer_show(title,url,w,h);
    }
    /*批量删除*/
    function datadel(url) {
        var obj = document.getElementsByName("checkbox[]");
        var check_val = [];
        for(k in obj){
            if(obj[k].checked)
                check_val.push(obj[k].value);
        }
        delAll(url,obj,check_val);
    }
</script>
</body>
</html>
